home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / netbro1a / frmbrows.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-13  |  43.3 KB  |  1,466 lines

  1. VERSION 5.00
  2. Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
  3. Object = "{27395F88-0C0C-101B-A3C9-08002B2F49FB}#1.1#0"; "PICCLP32.OCX"
  4. Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
  5. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  6. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  7. Begin VB.Form frmbrowse 
  8.    BackColor       =   &H00FFFFFF&
  9.    Caption         =   "VB Net Browser"
  10.    ClientHeight    =   5430
  11.    ClientLeft      =   60
  12.    ClientTop       =   345
  13.    ClientWidth     =   6675
  14.    Icon            =   "frmbrowse.frx":0000
  15.    LinkTopic       =   "Form1"
  16.    ScaleHeight     =   5430
  17.    ScaleWidth      =   6675
  18.    StartUpPosition =   3  'Windows Default
  19.    Begin VB.PictureBox Picture7 
  20.       BorderStyle     =   0  'None
  21.       Height          =   3855
  22.       Left            =   2430
  23.       MousePointer    =   9  'Size W E
  24.       ScaleHeight     =   3855
  25.       ScaleWidth      =   90
  26.       TabIndex        =   14
  27.       Top             =   1320
  28.       Visible         =   0   'False
  29.       Width           =   90
  30.    End
  31.    Begin SHDocVwCtl.WebBrowser wb 
  32.       CausesValidation=   0   'False
  33.       Height          =   3135
  34.       Left            =   0
  35.       TabIndex        =   3
  36.       Top             =   1320
  37.       Width           =   7095
  38.       ExtentX         =   12515
  39.       ExtentY         =   5530
  40.       ViewMode        =   0
  41.       Offline         =   0
  42.       Silent          =   0
  43.       RegisterAsBrowser=   0
  44.       RegisterAsDropTarget=   1
  45.       AutoArrange     =   0   'False
  46.       NoClientEdge    =   0   'False
  47.       AlignLeft       =   0   'False
  48.       ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
  49.       Location        =   ""
  50.    End
  51.    Begin MSComctlLib.ListView ListView1 
  52.       Height          =   3135
  53.       Left            =   120
  54.       TabIndex        =   11
  55.       Top             =   1800
  56.       Visible         =   0   'False
  57.       Width           =   2295
  58.       _ExtentX        =   4048
  59.       _ExtentY        =   5530
  60.       View            =   1
  61.       Arrange         =   2
  62.       LabelWrap       =   -1  'True
  63.       HideSelection   =   0   'False
  64.       GridLines       =   -1  'True
  65.       HotTracking     =   -1  'True
  66.       HoverSelection  =   -1  'True
  67.       _Version        =   393217
  68.       Icons           =   "ImageList1"
  69.       SmallIcons      =   "ImageList1"
  70.       ColHdrIcons     =   "ImageList1"
  71.       ForeColor       =   -2147483640
  72.       BackColor       =   -2147483643
  73.       Appearance      =   0
  74.       NumItems        =   0
  75.    End
  76.    Begin MSComDlg.CommonDialog dialog 
  77.       Left            =   3120
  78.       Top             =   4560
  79.       _ExtentX        =   847
  80.       _ExtentY        =   847
  81.       _Version        =   393216
  82.       CancelError     =   -1  'True
  83.    End
  84.    Begin VB.PictureBox Picture4 
  85.       Align           =   2  'Align Bottom
  86.       Appearance      =   0  'Flat
  87.       AutoRedraw      =   -1  'True
  88.       BackColor       =   &H00E0E0E0&
  89.       BorderStyle     =   0  'None
  90.       DrawStyle       =   5  'Transparent
  91.       FillColor       =   &H00FFFFC0&
  92.       FillStyle       =   0  'Solid
  93.       BeginProperty Font 
  94.          Name            =   "MS Sans Serif"
  95.          Size            =   8.25
  96.          Charset         =   0
  97.          Weight          =   400
  98.          Underline       =   -1  'True
  99.          Italic          =   0   'False
  100.          Strikethrough   =   0   'False
  101.       EndProperty
  102.       ForeColor       =   &H0080FF80&
  103.       Height          =   230
  104.       Left            =   0
  105.       ScaleHeight     =   15
  106.       ScaleMode       =   3  'Pixel
  107.       ScaleWidth      =   445
  108.       TabIndex        =   9
  109.       Top             =   5205
  110.       Width           =   6675
  111.       Begin VB.CommandButton Command2 
  112.          Caption         =   "E-Mail"
  113.          Height          =   225
  114.          Left            =   5880
  115.          TabIndex        =   17
  116.          Top             =   0
  117.          Width           =   735
  118.       End
  119.       Begin VB.CommandButton Command1 
  120.          Appearance      =   0  'Flat
  121.          Caption         =   "Search"
  122.          Height          =   225
  123.          Left            =   5400
  124.          TabIndex        =   15
  125.          Top             =   0
  126.          Width           =   735
  127.       End
  128.    End
  129.    Begin MSComctlLib.ImageList ImageList1 
  130.       Left            =   2040
  131.       Top             =   2280
  132.       _ExtentX        =   1005
  133.       _ExtentY        =   1005
  134.       BackColor       =   -2147483643
  135.       ImageWidth      =   16
  136.       ImageHeight     =   16
  137.       MaskColor       =   12632256
  138.       _Version        =   393216
  139.       BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  140.          NumListImages   =   1
  141.          BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  142.             Picture         =   "frmbrowse.frx":08CA
  143.             Key             =   ""
  144.          EndProperty
  145.       EndProperty
  146.    End
  147.    Begin VB.Timer Timer2 
  148.       Enabled         =   0   'False
  149.       Interval        =   1000
  150.       Left            =   5520
  151.       Top             =   2400
  152.    End
  153.    Begin InetCtlsObjects.Inet Inet1 
  154.       Left            =   4200
  155.       Top             =   1680
  156.       _ExtentX        =   1005
  157.       _ExtentY        =   1005
  158.       _Version        =   393216
  159.    End
  160.    Begin VB.PictureBox Picture11 
  161.       AutoSize        =   -1  'True
  162.       BorderStyle     =   0  'None
  163.       Height          =   735
  164.       Left            =   1440
  165.       ScaleHeight     =   735
  166.       ScaleWidth      =   1095
  167.       TabIndex        =   2
  168.       Top             =   4080
  169.       Visible         =   0   'False
  170.       Width           =   1095
  171.    End
  172.    Begin VB.PictureBox Picture2 
  173.       Align           =   1  'Align Top
  174.       Appearance      =   0  'Flat
  175.       BackColor       =   &H00E0E0E0&
  176.       BorderStyle     =   0  'None
  177.       ForeColor       =   &H80000008&
  178.       Height          =   210
  179.       Left            =   0
  180.       ScaleHeight     =   210
  181.       ScaleWidth      =   6675
  182.       TabIndex        =   1
  183.       Top             =   0
  184.       Width           =   6675
  185.       Begin VB.PictureBox Picture3 
  186.          AutoSize        =   -1  'True
  187.          BorderStyle     =   0  'None
  188.          Height          =   255
  189.          Left            =   4680
  190.          ScaleHeight     =   255
  191.          ScaleWidth      =   495
  192.          TabIndex        =   8
  193.          Top             =   0
  194.          Visible         =   0   'False
  195.          Width           =   495
  196.       End
  197.       Begin VB.Label mnu 
  198.          AutoSize        =   -1  'True
  199.          BackColor       =   &H00FFFFFF&
  200.          BackStyle       =   0  'Transparent
  201.          Caption         =   "&Help"
  202.          Height          =   195
  203.          Index           =   4
  204.          Left            =   2580
  205.          TabIndex        =   16
  206.          Top             =   0
  207.          Width           =   330
  208.       End
  209.       Begin VB.Label mnu 
  210.          AutoSize        =   -1  'True
  211.          BackColor       =   &H00FFFFFF&
  212.          BackStyle       =   0  'Transparent
  213.          Caption         =   "&Bookmarks"
  214.          Height          =   195
  215.          Index           =   3
  216.          Left            =   1600
  217.          TabIndex        =   7
  218.          Top             =   0
  219.          Width           =   795
  220.       End
  221.       Begin VB.Label mnu 
  222.          AutoSize        =   -1  'True
  223.          BackStyle       =   0  'Transparent
  224.          Caption         =   "&Options"
  225.          Height          =   195
  226.          Index           =   2
  227.          Left            =   915
  228.          TabIndex        =   6
  229.          Top             =   0
  230.          Width           =   540
  231.       End
  232.       Begin VB.Label mnu 
  233.          AutoSize        =   -1  'True
  234.          BackStyle       =   0  'Transparent
  235.          Caption         =   "&Edit"
  236.          Height          =   195
  237.          Index           =   1
  238.          Left            =   480
  239.          TabIndex        =   5
  240.          Top             =   0
  241.          Width           =   270
  242.       End
  243.       Begin VB.Label mnu 
  244.          AutoSize        =   -1  'True
  245.          BackStyle       =   0  'Transparent
  246.          Caption         =   "&File"
  247.          Height          =   195
  248.          Index           =   0
  249.          Left            =   120
  250.          TabIndex        =   4
  251.          Top             =   0
  252.          Width           =   240
  253.       End
  254.    End
  255.    Begin VB.PictureBox Picture1 
  256.       Align           =   1  'Align Top
  257.       BorderStyle     =   0  'None
  258.       Height          =   1110
  259.       Left            =   0
  260.       ScaleHeight     =   1110
  261.       ScaleWidth      =   6675
  262.       TabIndex        =   0
  263.       Top             =   210
  264.       Width           =   6675
  265.       Begin VB.ComboBox Combo1 
  266.          Height          =   315
  267.          Left            =   120
  268.          TabIndex        =   18
  269.          Text            =   "go.to/mostafa"
  270.          Top             =   600
  271.          Width           =   6015
  272.       End
  273.       Begin PicClip.PictureClip Clip1 
  274.          Left            =   3960
  275.          Top             =   0
  276.          _ExtentX        =   1085
  277.          _ExtentY        =   661
  278.          _Version        =   393216
  279.       End
  280.       Begin VB.PictureBox Picture5 
  281.          AutoSize        =   -1  'True
  282.          BorderStyle     =   0  'None
  283.          Height          =   855
  284.          Left            =   5520
  285.          ScaleHeight     =   855
  286.          ScaleWidth      =   975
  287.          TabIndex        =   10
  288.          Top             =   0
  289.          Width           =   975
  290.          Begin VB.Timer Timer1 
  291.             Interval        =   50
  292.             Left            =   120
  293.             Top             =   120
  294.          End
  295.       End
  296.       Begin VB.Image homebtn 
  297.          Height          =   495
  298.          Left            =   2640
  299.          MouseIcon       =   "frmbrowse.frx":0C1E
  300.          MousePointer    =   99  'Custom
  301.          ToolTipText     =   "Home"
  302.          Top             =   30
  303.          Width           =   495
  304.       End
  305.       Begin VB.Image refreshbtn 
  306.          Height          =   495
  307.          Left            =   2160
  308.          MouseIcon       =   "frmbrowse.frx":0D70
  309.          MousePointer    =   99  'Custom
  310.          ToolTipText     =   "Refresh"
  311.          Top             =   30
  312.          Width           =   495
  313.       End
  314.       Begin VB.Image stopbtn 
  315.          Height          =   495
  316.          Left            =   1680
  317.          MouseIcon       =   "frmbrowse.frx":0EC2
  318.          MousePointer    =   99  'Custom
  319.          ToolTipText     =   "Stop"
  320.          Top             =   30
  321.          Width           =   480
  322.       End
  323.       Begin VB.Image forbtn 
  324.          Height          =   480
  325.          Left            =   1080
  326.          MouseIcon       =   "frmbrowse.frx":1014
  327.          MousePointer    =   99  'Custom
  328.          ToolTipText     =   "Forward"
  329.          Top             =   30
  330.          Width           =   480
  331.       End
  332.       Begin VB.Image backbtn 
  333.          Height          =   480
  334.          Left            =   600
  335.          MouseIcon       =   "frmbrowse.frx":1166
  336.          MousePointer    =   99  'Custom
  337.          ToolTipText     =   "Back"
  338.          Top             =   30
  339.          Width           =   480
  340.       End
  341.       Begin VB.Image Image1 
  342.          Height          =   255
  343.          Left            =   240
  344.          Top             =   60
  345.          Width           =   255
  346.       End
  347.    End
  348.    Begin VB.PictureBox Picture6 
  349.       BorderStyle     =   0  'None
  350.       Height          =   400
  351.       Left            =   0
  352.       ScaleHeight     =   405
  353.       ScaleWidth      =   2400
  354.       TabIndex        =   12
  355.       Top             =   1340
  356.       Visible         =   0   'False
  357.       Width           =   2400
  358.       Begin VB.Line Line7 
  359.          BorderColor     =   &H00808080&
  360.          X1              =   0
  361.          X2              =   0
  362.          Y1              =   0
  363.          Y2              =   360
  364.       End
  365.       Begin VB.Line Line6 
  366.          BorderColor     =   &H00FFFFFF&
  367.          X1              =   20
  368.          X2              =   20
  369.          Y1              =   0
  370.          Y2              =   360
  371.       End
  372.       Begin VB.Line Line2 
  373.          BorderColor     =   &H00808080&
  374.          Index           =   1
  375.          X1              =   0
  376.          X2              =   2640
  377.          Y1              =   360
  378.          Y2              =   360
  379.       End
  380.       Begin VB.Line Line1 
  381.          BorderColor     =   &H00FFFFFF&
  382.          Index           =   1
  383.          X1              =   0
  384.          X2              =   6480
  385.          Y1              =   375
  386.          Y2              =   375
  387.       End
  388.       Begin VB.Line Line1 
  389.          BorderColor     =   &H00FFFFFF&
  390.          Index           =   0
  391.          X1              =   0
  392.          X2              =   6480
  393.          Y1              =   15
  394.          Y2              =   15
  395.       End
  396.       Begin VB.Line Line2 
  397.          BorderColor     =   &H00808080&
  398.          Index           =   0
  399.          X1              =   0
  400.          X2              =   2640
  401.          Y1              =   0
  402.          Y2              =   0
  403.       End
  404.       Begin VB.Line Line5 
  405.          BorderColor     =   &H00808080&
  406.          X1              =   2380
  407.          X2              =   2380
  408.          Y1              =   360
  409.          Y2              =   0
  410.       End
  411.       Begin VB.Line Line4 
  412.          BorderColor     =   &H00FFFFFF&
  413.          X1              =   2400
  414.          X2              =   2400
  415.          Y1              =   360
  416.          Y2              =   0
  417.       End
  418.       Begin VB.Label Label1 
  419.          AutoSize        =   -1  'True
  420.          BackStyle       =   0  'Transparent
  421.          Caption         =   "Links"
  422.          BeginProperty Font 
  423.             Name            =   "MS Sans Serif"
  424.             Size            =   9.75
  425.             Charset         =   0
  426.             Weight          =   400
  427.             Underline       =   0   'False
  428.             Italic          =   0   'False
  429.             Strikethrough   =   0   'False
  430.          EndProperty
  431.          Height          =   240
  432.          Left            =   120
  433.          TabIndex        =   13
  434.          Top             =   75
  435.          Width           =   465
  436.       End
  437.    End
  438.    Begin VB.Line Line3 
  439.       X1              =   0
  440.       X2              =   0
  441.       Y1              =   1560
  442.       Y2              =   8640
  443.    End
  444.    Begin VB.Menu mnubar 
  445.       Caption         =   "File"
  446.       Index           =   0
  447.       Visible         =   0   'False
  448.       Begin VB.Menu mnuwnd 
  449.          Caption         =   "New Window"
  450.          Shortcut        =   ^N
  451.       End
  452.       Begin VB.Menu mnuopen 
  453.          Caption         =   "Open"
  454.          Shortcut        =   ^O
  455.       End
  456.       Begin VB.Menu mnuedit 
  457.          Caption         =   "Edit"
  458.          Shortcut        =   ^E
  459.       End
  460.       Begin VB.Menu mnusave 
  461.          Caption         =   "Save"
  462.          Shortcut        =   ^S
  463.       End
  464.       Begin VB.Menu mnusaveas 
  465.          Caption         =   "Save as"
  466.       End
  467.       Begin VB.Menu mnusep 
  468.          Caption         =   "-"
  469.       End
  470.       Begin VB.Menu mnuorint 
  471.          Caption         =   "Print"
  472.          Shortcut        =   ^P
  473.       End
  474.       Begin VB.Menu mnuset 
  475.          Caption         =   "Page Setup"
  476.       End
  477.       Begin VB.Menu mnuprop 
  478.          Caption         =   "Properties"
  479.       End
  480.       Begin VB.Menu mnusep1 
  481.          Caption         =   "-"
  482.       End
  483.       Begin VB.Menu mnuexit 
  484.          Caption         =   "Exit"
  485.          Shortcut        =   {F12}
  486.       End
  487.    End
  488.    Begin VB.Menu mnubar 
  489.       Caption         =   "Editmnu"
  490.       Index           =   1
  491.       Visible         =   0   'False
  492.       Begin VB.Menu mnucut 
  493.          Caption         =   "Cut"
  494.          Shortcut        =   ^X
  495.       End
  496.       Begin VB.Menu mnucopy 
  497.          Caption         =   "Copy"
  498.          Shortcut        =   ^C
  499.       End
  500.       Begin VB.Menu mnupaste 
  501.          Caption         =   "Paste"
  502.          Shortcut        =   ^V
  503.       End
  504.       Begin VB.Menu mnudelete 
  505.          Caption         =   "Delete"
  506.          Shortcut        =   {DEL}
  507.       End
  508.       Begin VB.Menu mnusep3 
  509.          Caption         =   "-"
  510.       End
  511.       Begin VB.Menu mnuselect 
  512.          Caption         =   "Select All"
  513.          Shortcut        =   ^A
  514.       End
  515.       Begin VB.Menu mnusep4 
  516.          Caption         =   "-"
  517.       End
  518.       Begin VB.Menu mnufind 
  519.          Caption         =   "Find"
  520.          Shortcut        =   ^F
  521.       End
  522.    End
  523.    Begin VB.Menu mnubar 
  524.       Caption         =   "mnu"
  525.       Index           =   2
  526.       Visible         =   0   'False
  527.       Begin VB.Menu mnugoto 
  528.          Caption         =   "Goto"
  529.          Begin VB.Menu mnuback 
  530.             Caption         =   "Back"
  531.          End
  532.          Begin VB.Menu mnuforward 
  533.             Caption         =   "Forward"
  534.          End
  535.          Begin VB.Menu mnuhome 
  536.             Caption         =   "Home Page"
  537.          End
  538.       End
  539.       Begin VB.Menu mnustop 
  540.          Caption         =   "Stop"
  541.       End
  542.       Begin VB.Menu mnurefresh 
  543.          Caption         =   "Refresh"
  544.       End
  545.       Begin VB.Menu mnuep5 
  546.          Caption         =   "-"
  547.       End
  548.       Begin VB.Menu mnusource 
  549.          Caption         =   "Page Source"
  550.       End
  551.       Begin VB.Menu mnufull 
  552.          Caption         =   "Full Screen"
  553.       End
  554.       Begin VB.Menu mnusep6 
  555.          Caption         =   "-"
  556.       End
  557.       Begin VB.Menu mnulinks 
  558.          Caption         =   "Vb programing links"
  559.          Shortcut        =   {F4}
  560.       End
  561.       Begin VB.Menu mnuvbgame 
  562.          Caption         =   "Vb game programing links"
  563.          Shortcut        =   {F5}
  564.       End
  565.       Begin VB.Menu mnvbsample 
  566.          Caption         =   "Vb samples"
  567.          Shortcut        =   {F6}
  568.       End
  569.       Begin VB.Menu mnusrch 
  570.          Caption         =   "Search for ""vb"""
  571.          Shortcut        =   {F7}
  572.       End
  573.       Begin VB.Menu mnuoptions 
  574.          Caption         =   "Vb search options"
  575.          Shortcut        =   {F8}
  576.       End
  577.       Begin VB.Menu sep8 
  578.          Caption         =   "-"
  579.       End
  580.       Begin VB.Menu mnusearch 
  581.          Caption         =   "Search"
  582.          Shortcut        =   {F9}
  583.       End
  584.       Begin VB.Menu mnuhomepage 
  585.          Caption         =   "Home Page"
  586.       End
  587.       Begin VB.Menu mnuskin 
  588.          Caption         =   "Skin"
  589.       End
  590.    End
  591.    Begin VB.Menu mnubar 
  592.       Caption         =   "mnus"
  593.       Index           =   3
  594.       Visible         =   0   'False
  595.       Begin VB.Menu mnubookbarkadd 
  596.          Caption         =   "Add Bookmark"
  597.          Shortcut        =   {F2}
  598.       End
  599.       Begin VB.Menu mnuorganize 
  600.          Caption         =   "Organize Bookmarks"
  601.          Shortcut        =   {F3}
  602.       End
  603.       Begin VB.Menu mnusep9 
  604.          Caption         =   "-"
  605.       End
  606.       Begin VB.Menu mnubook 
  607.          Caption         =   "Mostafa vb page"
  608.          Index           =   0
  609.       End
  610.    End
  611.    Begin VB.Menu mnubar 
  612.       Caption         =   "mnu"
  613.       Index           =   4
  614.       Visible         =   0   'False
  615.       Begin VB.Menu mnuupdate 
  616.          Caption         =   "Update Links"
  617.       End
  618.       Begin VB.Menu mnuabout 
  619.          Caption         =   "About"
  620.       End
  621.    End
  622. Attribute VB_Name = "frmbrowse"
  623. Attribute VB_GlobalNameSpace = False
  624. Attribute VB_Creatable = False
  625. Attribute VB_PredeclaredId = True
  626. Attribute VB_Exposed = False
  627. Dim mx As Integer
  628. Dim my As Integer
  629. Dim stext As String
  630. Dim curg As Integer
  631. Dim MouseStartx
  632. Dim indx As Integer
  633. Dim itmtex(9) As String
  634. Dim title As String
  635. Dim homepage As String
  636. Dim skin As String
  637. Sub newfrm()
  638. On Error Resume Next
  639.     Static lDocumentCount As Long
  640.     Dim frmD As frmbrowse
  641.     lDocumentCount = lDocumentCount + 1
  642.     Set frmD = New frmbrowse
  643.     frmD.Show
  644.     frmD.SetFocus
  645.     frmD.mnubookbarkadd.Enabled = False
  646.     frmD.mnuorganize.Enabled = False
  647. End Sub
  648. Sub addlinks(filename As String)
  649. Dim a As String
  650. On Error Resume Next
  651. indx = 0
  652. ListView1.ListItems.Clear
  653. Open filename For Input As #1
  654. Input #1, a
  655. Input #1, b
  656. If a <> "" Then
  657. indx = indx + 1
  658. ListView1.ListItems.Add indx, , a, 1, 1
  659. ListView1.ListItems(indx).Tag = b
  660. ListView1.ListItems(indx).ToolTipText = b
  661. End If
  662. Loop Until EOF(1)
  663. Close #1
  664. End Sub
  665. Sub addbooks(filename As String)
  666. Dim a As String
  667. On Error Resume Next
  668. indeex = -1
  669. Open filename For Input As #1
  670. Input #1, a
  671. Input #1, b
  672. If a <> "" Then
  673. indeex = indeex + 1
  674. Load Me.mnubook(indeex)
  675. Me.mnubook(indeex).Visible = True
  676. Me.mnubook(indeex).Caption = a
  677. Me.mnubook(indeex).Tag = b
  678. End If
  679. Loop Until EOF(1)
  680. Close #1
  681. End Sub
  682. Sub getitems()
  683. Dim a As String
  684. On Error Resume Next
  685. Open App.Path & "\items.txt" For Input As #1
  686. Input #1, a
  687. If a <> "" Then
  688. Combo1.AddItem a
  689. End If
  690. Loop Until EOF(1)
  691. Close #1
  692. End Sub
  693. Sub additems()
  694. On Error Resume Next
  695. Dim i As Integer
  696. Dim a As String
  697. Open App.Path & "\items.txt" For Output As #1
  698. For i = 0 To Combo1.ListCount - 1
  699. Write #1, Combo1.List(i)
  700. Next i
  701. Close #1
  702. End Sub
  703. Sub savebook()
  704. On Error Resume Next
  705. Dim i As Integer
  706. Dim a As String
  707. Open App.Path & "\bookmarks.txt" For Output As #1
  708. For i = 0 To indeex
  709. Write #1, mnubook(i).Caption
  710. Write #1, mnubook(i).Tag
  711. Next i
  712. Close #1
  713. End Sub
  714. Sub Loadskin(filename As String)
  715. On Error Resume Next
  716. Open filename For Input As 1
  717. Input #1, a
  718. Input #1, b
  719. If a = "clr" Then
  720. titlebar.BackColor = b
  721. Picture1.BackColor = b
  722. Picture2.BackColor = b
  723. Picture4.BackColor = b
  724. Picture6.BackColor = b
  725. Picture7.BackColor = b
  726. End If
  727. If a = "titleclr" Then
  728. titlebar.ForeColor = b
  729. End If
  730. If a = "progclr" Then
  731. Picture4.FillColor = b
  732. End If
  733. If a = "foreclr" Then
  734. titlebar.ForeColor = b
  735. Me.ForeColor = b
  736. Picture1.ForeColor = b
  737. Picture2.ForeColor = b
  738. Picture4.ForeColor = b
  739. For i = 0 To 3
  740. mnu(i).ForeColor = b
  741. Next i
  742. End If
  743. If a = "titlepic" Then
  744. Picture11.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  745. Picture11.Tag = (App.Path & "\" & b & ".bmp")
  746. 'Clip1.Picture = LoadPicture(App.Path & "\skins\logo1.bmp")
  747. End If
  748. If a = "logopic" Then
  749. Clip1.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  750. End If
  751. If a = "logocol" Then
  752. Clip1.Cols = b
  753. End If
  754. If a = "logowdth" Then
  755. Clip1.ClipWidth = b
  756. End If
  757. If a = "mnupic" Then
  758. Picture3.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  759. Picture3.Tag = (App.Path & "\" & b & ".bmp")
  760. End If
  761. If a = "backbtn" Then
  762. backbtn.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  763. backbtn.Tag = b
  764. End If
  765. If a = "forbtn" Then
  766. forbtn.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  767. forbtn.Tag = b
  768. End If
  769. If a = "icon" Then
  770. Image1.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  771. End If
  772. If a = "stopbtn" Then
  773. stopbtn.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  774. stopbtn.Tag = b
  775. End If
  776. If a = "refreshbtn" Then
  777. refreshbtn.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  778. refreshbtn.Tag = b
  779. End If
  780. If a = "homebtn" Then
  781. homebtn.Picture = LoadPicture(App.Path & "\" & b & ".bmp")
  782. homebtn.Tag = b
  783. End If
  784. Loop Until EOF(1)
  785. Close #1
  786. End Sub
  787. Private Sub backbtn_Click()
  788. wb.GoBack
  789. End Sub
  790. Private Sub backbtn_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  791. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & ".bmp")
  792. End Sub
  793. Private Sub backbtn_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  794. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & ".bmp")
  795. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & ".bmp")
  796. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & ".bmp")
  797. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & ".bmp")
  798. If Button = False Then
  799. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & "2.bmp")
  800. End If
  801. End Sub
  802. Private Sub backbtn_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  803. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & ".bmp")
  804. End Sub
  805. Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
  806. On Error Resume Next
  807. Dim fnd As Boolean
  808. Dim i As Integer
  809. If KeyCode = vbKeyReturn Then
  810. wb.Navigate Combo1.Text
  811. fnd = False
  812. For i = 0 To Combo1.ListCount
  813. If Combo1.List(i) = Combo1.Text Then
  814. fnd = True
  815. Exit For
  816. End If
  817. Next i
  818. If fnd = False Then
  819. Combo1.AddItem Combo1.Text
  820. additems
  821. End If
  822. End If
  823. End Sub
  824. Private Sub Combo1_KeyUp(KeyCode As Integer, Shift As Integer)
  825. Timer2.Enabled = True
  826. End Sub
  827. Private Sub Command1_Click()
  828. On Error Resume Next
  829. If mnusearch.Checked = False Then
  830. On Error Resume Next
  831. mnusearch.Checked = True
  832. mnulinks.Checked = False
  833. mnuvbgame.Checked = False
  834. mnvbsample.Checked = False
  835. ListView1.Visible = True
  836. Picture7.Visible = True
  837. Picture6.Visible = True
  838. Picture7_MouseUp 1, 1, 1, 1
  839. Label1.Caption = "Search"
  840. addlinks App.Path & "\search.txt"
  841. Exit Sub
  842. mnusearch.Checked = False
  843. mnulinks.Checked = False
  844. ListView1.Visible = False
  845. Picture6.Visible = False
  846. Picture7.Visible = False
  847. wb.Left = 0
  848. Form_Resize
  849. Exit Sub
  850. End If
  851. End Sub
  852. Private Sub conta_Resize()
  853. On Error Resume Next
  854. If pge.Height > conta.Height Then
  855. VScroll1.Enabled = True
  856. VScroll1.Enabled = False
  857. End If
  858. VScroll1.Max = pge.Height - conta.Height
  859. VScroll1.Height = conta.Height - 50
  860. End Sub
  861. Private Sub Command2_Click()
  862. On Error Resume Next
  863. wb.Navigate "mailto:"
  864. wb.GoBack
  865. End Sub
  866. Private Sub forbtn_Click()
  867. wb.GoForward
  868. End Sub
  869. Private Sub forbtn_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  870. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & ".bmp")
  871. End Sub
  872. Private Sub forbtn_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  873. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & ".bmp")
  874. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & ".bmp")
  875. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & ".bmp")
  876. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & ".bmp")
  877. If Button = False Then
  878. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & "2.bmp")
  879. End If
  880. End Sub
  881. Private Sub forbtn_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  882. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & ".bmp")
  883. End Sub
  884. Private Sub Form_Activate()
  885. On Error Resume Next
  886. Form_Resize
  887. End Sub
  888. Private Sub Form_Load()
  889. On Error Resume Next
  890. addbooks App.Path & "\bookmarks.txt"
  891. getitems
  892. indd = -1
  893. Open App.Path & "\srch.txt" For Input As #1
  894. indd = indd + 1
  895. Input #1, itm(indd)
  896. Loop Until EOF(1)
  897. Close #1
  898. Open App.Path & "\place.inf" For Input As #2
  899. Input #2, a, b, c, d
  900. Me.Move a, b, c, d
  901. Close #2
  902. Open App.Path & "\home.inf" For Input As #1
  903. Input #1, homepage
  904. Input #1, skin
  905. Close #1
  906. Loadskin (App.Path & "\" & skin & ".inf")
  907. wb.Navigate homepage
  908. End Sub
  909. Private Sub Form_Resize()
  910. On Error Resume Next
  911. wb.Width = Me.ScaleWidth - wb.Left
  912. wb.Height = Me.ScaleHeight - wb.Top - Picture4.Height
  913. ListView1.Height = Me.ScaleHeight - ListView1.Top - Picture4.Height
  914. Picture7.Height = Me.ScaleHeight - Picture7.Top - Picture4.Height
  915. End Sub
  916. Private Sub Form_Unload(Cancel As Integer)
  917. On Error Resume Next
  918. additems
  919. Open App.Path & "\place.inf" For Output As #1
  920. Print #1, Me.Left & "," & Me.Top & "," & Me.Width & "," & Me.Height
  921. Close #1
  922. End Sub
  923. Private Sub homebtn_Click()
  924. On Error Resume Next
  925. wb.Navigate homepage
  926. End Sub
  927. Private Sub homebtn_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  928. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & ".bmp")
  929. End Sub
  930. Private Sub homebtn_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  931. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & ".bmp")
  932. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & ".bmp")
  933. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & ".bmp")
  934. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & ".bmp")
  935. If Button = False Then
  936. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & "2.bmp")
  937. End If
  938. End Sub
  939. Private Sub homebtn_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  940. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & ".bmp")
  941. End Sub
  942. Private Sub maxmize_Click()
  943. Me.WindowState = 2
  944. End Sub
  945. Private Sub minimize_Click()
  946. Me.WindowState = 1
  947. End Sub
  948. Private Sub Image1_Click()
  949. 'wb.GoSearch
  950. End Sub
  951. Private Sub Label1_Click()
  952. On Error Resume Next
  953. mnulinks.Checked = False
  954. ListView1.Visible = False
  955. Picture6.Visible = False
  956. Picture7.Visible = False
  957. wb.Left = 0
  958. Form_Resize
  959. End Sub
  960. Private Sub ListView1_Click()
  961. On Error Resume Next
  962. If ListView1.SelectedItem <> 0 Then
  963. newfrm
  964. Screen.ActiveForm.wb.Navigate ListView1.SelectedItem.Tag
  965. End If
  966. End Sub
  967. Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
  968. On Error Resume Next
  969. stext = ListView1.SelectedItem.Tag
  970. wb_ProgressChange 0, 100
  971. End Sub
  972. Private Sub mnu_Click(Index As Integer)
  973. Me.PopupMenu mnubar(Index), , mnu(Index).Left, mnu(Index).Top + mnu(Index).Height
  974. End Sub
  975. Private Sub mnu_MouseMove(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
  976. For i = 0 To 4
  977. If mnu(i).BackStyle = 1 Then
  978. mnu(i).BackStyle = 0
  979. End If
  980. Next i
  981. If mnu(Index).BackStyle = 0 Then
  982. mnu(Index).BackStyle = 1
  983. mnu(Index).BackColor = Me.BackColor
  984. End If
  985. End Sub
  986. Private Sub mnuabout_Click()
  987. On Error Resume Next
  988. frmAbout.Show vbModal
  989. End Sub
  990. Private Sub mnuback_Click()
  991. wb.GoBack
  992. End Sub
  993. Private Sub mnubook_Click(Index As Integer)
  994. On Error Resume Next
  995. wb.Navigate mnubook(Index).Tag
  996. End Sub
  997. Private Sub mnubookbarkadd_Click()
  998. On Error Resume Next
  999. indeex = indeex + 1
  1000. Load mnubook(indeex)
  1001. mnubook(indeex).Caption = title
  1002. mnubook(indeex).Tag = wb.LocationURL
  1003. savebook
  1004. End Sub
  1005. Private Sub mnucopy_Click()
  1006. On Error Resume Next
  1007. wb.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DONTPROMPTUSER
  1008. End Sub
  1009. Private Sub mnucut_Click()
  1010. On Error Resume Next
  1011. wb.ExecWB OLECMDID_CUT, OLECMDEXECOPT_DONTPROMPTUSER
  1012. End Sub
  1013. Private Sub mnudelete_Click()
  1014. On Error Resume Next
  1015. wb.ExecWB OLECMDID_DELETE, OLECMDEXECOPT_DONTPROMPTUSER
  1016. End Sub
  1017. Private Sub mnuedit_Click()
  1018. On Error Resume Next
  1019. mnusource_Click
  1020. End Sub
  1021. Private Sub mnuexit_Click()
  1022. Unload Me
  1023. End Sub
  1024. Private Sub mnufind_Click()
  1025. On Error Resume Next
  1026. wb.ExecWB OLECMDID_FIND, OLECMDEXECOPT_PROMPTUSER
  1027. End Sub
  1028. Private Sub mnuforward_Click()
  1029. wb.GoForward
  1030. End Sub
  1031. Private Sub mnuhome_Click()
  1032. On Error Resume Next
  1033. wb.Navigate homepage
  1034. End Sub
  1035. Private Sub mnuhomepage_Click()
  1036. On Error Resume Next
  1037. homepage = InputBox("Enter the url for the page that you want to make it your home page.", "Select homepage", homepage)
  1038. Open App.Path & "\home.inf" For Output As #1
  1039. Write #1, homepage
  1040. Write #1, skin
  1041. Close #1
  1042. End Sub
  1043. Private Sub mnulinks_Click()
  1044. On Error Resume Next
  1045. If mnulinks.Checked = False Then
  1046. On Error Resume Next
  1047. mnulinks.Checked = True
  1048. mnuvbgame.Checked = False
  1049. mnusearch.Checked = False
  1050. mnvbsample.Checked = False
  1051. ListView1.Visible = True
  1052. Picture7.Visible = True
  1053. Picture6.Visible = True
  1054. Picture7_MouseUp 1, 1, 1, 1
  1055. Label1.Caption = "Vb programing links"
  1056. addlinks App.Path & "\links.txt"
  1057. Exit Sub
  1058. mnulinks.Checked = False
  1059. ListView1.Visible = False
  1060. mnusearch.Checked = False
  1061. Picture6.Visible = False
  1062. Picture7.Visible = False
  1063. wb.Left = 0
  1064. Form_Resize
  1065. Exit Sub
  1066. End If
  1067. End Sub
  1068. Private Sub mnuopen_Click()
  1069. On Error GoTo er
  1070. With dialog
  1071. .Filter = "Html files (*.html,*.htm)|*.html;*.htm|All files (*.*)|*.*|"
  1072. .ShowOpen
  1073. wb.Navigate .filename
  1074. End With
  1075. Exit Sub
  1076. If Err.Description <> "Cancel was selected." Then
  1077. MsgBox Err.Description
  1078. End If
  1079. End Sub
  1080. Private Sub mnuoptions_Click()
  1081. On Error Resume Next
  1082. srchlist.Show vbModal
  1083. End Sub
  1084. Private Sub mnuorganize_Click()
  1085. edit.Show vbModal
  1086. End Sub
  1087. Private Sub mnuorint_Click()
  1088. On Error Resume Next
  1089. wb.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
  1090. End Sub
  1091. Private Sub mnupaste_Click()
  1092. On Error Resume Next
  1093. wb.ExecWB OLECMDID_PASTE, OLECMDEXECOPT_DONTPROMPTUSER
  1094. End Sub
  1095. Private Sub mnuprop_Click()
  1096. On Error Resume Next
  1097. wb.ExecWB OLECMDID_PROPERTIES, OLECMDEXECOPT_PROMPTUSER
  1098. End Sub
  1099. Private Sub mnurefresh_Click()
  1100. On Error Resume Next
  1101. wb.Refresh
  1102. End Sub
  1103. Private Sub mnusave_Click()
  1104. On Error Resume Next
  1105. wb.ExecWB OLECMDID_SAVE, OLECMDEXECOPT_DONTPROMPTUSER
  1106. End Sub
  1107. Private Sub mnusaveas_Click()
  1108. On Error Resume Next
  1109. wb.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER
  1110. End Sub
  1111. Private Sub mnusearch_Click()
  1112. On Error Resume Next
  1113. If mnusearch.Checked = False Then
  1114. On Error Resume Next
  1115. mnusearch.Checked = True
  1116. mnulinks.Checked = False
  1117. mnuvbgame.Checked = False
  1118. mnvbsample.Checked = False
  1119. ListView1.Visible = True
  1120. Picture7.Visible = True
  1121. Picture6.Visible = True
  1122. Picture7_MouseUp 1, 1, 1, 1
  1123. Label1.Caption = "Search"
  1124. addlinks App.Path & "\search.txt"
  1125. Exit Sub
  1126. mnusearch.Checked = False
  1127. mnulinks.Checked = False
  1128. ListView1.Visible = False
  1129. Picture6.Visible = False
  1130. Picture7.Visible = False
  1131. wb.Left = 0
  1132. Form_Resize
  1133. Exit Sub
  1134. End If
  1135. End Sub
  1136. Private Sub mnuselect_Click()
  1137. On Error Resume Next
  1138. wb.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER
  1139. End Sub
  1140. Private Sub mnuset_Click()
  1141. On Error Resume Next
  1142. wb.ExecWB OLECMDID_PAGESETUP, OLECMDEXECOPT_DONTPROMPTUSER
  1143. End Sub
  1144. Private Sub mnuskin_Click()
  1145. On Error Resume Next
  1146. skin = InputBox("Enter the name of the skin you want to open", "Select Skin", skin)
  1147. Open App.Path & "\home.inf" For Output As #1
  1148. Write #1, homepage
  1149. Write #1, skin
  1150. Close #1
  1151. Loadskin (App.Path & "\" & skin & ".inf")
  1152. End Sub
  1153. Private Sub mnusource_Click()
  1154. On Error Resume Next
  1155. Open App.Path & "\temp.txt" For Output As #1
  1156. Print #1, Inet1.OpenURL(wb.LocationURL, 0)
  1157. Close #1
  1158. Shell "Notepad " & App.Path & "\temp.txt", vbNormalFocus
  1159. End Sub
  1160. Private Sub mnusrch_Click()
  1161. On Error Resume Next
  1162. itmtex(8) = "http://search.netscape.com/cgi-bin/search?search=vb"
  1163. itmtex(9) = "http://ink.yahoo.com/bin/query?p=vb&hc=0&hs=0"
  1164. itmtex(5) = "http://infoseek.go.com/titles?qt=vb"
  1165. itmtex(4) = "http://www.goto.com/d/search/;$sessionid$AQWZ5ZIAAFSV3QFIEEWQPUQ?type=home&Keywords=vb"
  1166. itmtex(0) = "http://search.about.com/scripts/query70.asp?terms=vb&trail=&Site=home&SUName=home&COB=home&TopNode=%2F"
  1167. itmtex(3) = "http://search.excite.com/search.gw?search=vb"
  1168. itmtex(6) = "http://www.looksmart.com/r_search?look=&searck=&key=vb"
  1169. itmtex(1) = "http://www.altavista.com/cgi-bin/query?pg=q&kl=XX&style=stext&q=vb"
  1170. itmtex(2) = "http://www.directhit.com/fcgi-bin/TopTenDemo.fcg?cmd=demo_qry&oose=1&qry=vb"
  1171. itmtex(7) = "http://www.lycos.com/cgi-bin/pursuit?cat=dir&query=vb"
  1172. For i = 0 To 9
  1173. If itm(i) = True Then
  1174. newfrm
  1175. Screen.ActiveForm.wb.Navigate itmtex(i)
  1176. End If
  1177. Next i
  1178. End Sub
  1179. Private Sub mnustop_Click()
  1180. On Error Resume Next
  1181. wb.Stop
  1182. End Sub
  1183. Private Sub mnuupdate_Click()
  1184. On Error Resume Next
  1185. Shell App.Path & "\update.exe", vbNormalFocus
  1186. End Sub
  1187. Private Sub mnuvbgame_Click()
  1188. On Error Resume Next
  1189. If mnuvbgame.Checked = False Then
  1190. On Error Resume Next
  1191. mnuvbgame.Checked = True
  1192. mnvbsample.Checked = False
  1193. mnulinks.Checked = False
  1194. mnusearch.Checked = False
  1195. ListView1.Visible = True
  1196. Picture7.Visible = True
  1197. Picture6.Visible = True
  1198. Picture7_MouseUp 1, 1, 1, 1
  1199. Label1.Caption = "Vb game programing links"
  1200. addlinks App.Path & "\game.txt"
  1201. Exit Sub
  1202. mnuvbgame.Checked = False
  1203. ListView1.Visible = False
  1204. Picture6.Visible = False
  1205. mnusearch.Checked = False
  1206. Picture7.Visible = False
  1207. wb.Left = 0
  1208. Form_Resize
  1209. Exit Sub
  1210. End If
  1211. End Sub
  1212. Private Sub mnuwnd_Click()
  1213. newfrm
  1214. End Sub
  1215. Private Sub mnvbsample_Click()
  1216. On Error Resume Next
  1217. If mnvbsample.Checked = False Then
  1218. On Error Resume Next
  1219. mnvbsample.Checked = True
  1220. mnuvbgame.Checked = False
  1221. mnulinks.Checked = False
  1222. ListView1.Visible = True
  1223. mnusearch.Checked = False
  1224. Picture7.Visible = True
  1225. Picture6.Visible = True
  1226. Picture7_MouseUp 1, 1, 1, 1
  1227. Label1.Caption = "Vb samples"
  1228. addlinks App.Path & "\samples.txt"
  1229. Exit Sub
  1230. mnvbsample.Checked = False
  1231. ListView1.Visible = False
  1232. Picture6.Visible = False
  1233. mnusearch.Checked = False
  1234. Picture7.Visible = False
  1235. wb.Left = 0
  1236. Form_Resize
  1237. Exit Sub
  1238. End If
  1239. End Sub
  1240. Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1241. On Error Resume Next
  1242. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & ".bmp")
  1243. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & ".bmp")
  1244. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & ".bmp")
  1245. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & ".bmp")
  1246. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & ".bmp")
  1247. For i = 0 To 4
  1248. If mnu(i).BackStyle = 1 Then
  1249. mnu(i).BackStyle = 0
  1250. End If
  1251. Next i
  1252. End Sub
  1253. Private Sub Picture1_Resize()
  1254. On Error Resume Next
  1255. Picture5.Top = (Picture1.Height / 2) - (Picture5.Height / 2)
  1256. If Picture1.Width > homebtn.Left + homebtn.Width + (Picture5.ScaleWidth + 200) Then
  1257. Picture5.Visible = True
  1258. Picture5.Left = Picture1.Width - Picture5.Width - 50
  1259. Combo1.Width = Picture1.ScaleWidth - Combo1.Left - (Picture5.ScaleWidth + 200)
  1260. Picture5.Visible = False
  1261. Combo1.Width = Picture1.ScaleWidth - Combo1.Left - 200
  1262. End If
  1263. End Sub
  1264. Private Sub Picture2_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1265. For i = 0 To 4
  1266. If mnu(i).BackStyle = 1 Then
  1267. mnu(i).BackStyle = 0
  1268. End If
  1269. Next i
  1270. End Sub
  1271. Private Sub Picture2_Paint()
  1272. On Error Resume Next
  1273. Picture2.Cls
  1274. Dim x As Single
  1275. Dim y As Single
  1276. y = 0
  1277. x = 0
  1278. Picture2.PaintPicture Picture3.Picture, 0, 0, Picture3.Width, Picture3.Height, 0, 0, Picture3.Width, Picture3.Height
  1279. x = x + Picture3.Width
  1280. Picture2.PaintPicture Picture3.Picture, x, y, Picture3.Width, Picture3.Height, 0, 0, Picture3.Width, Picture3.Height
  1281. If x > Picture2.Width Then
  1282. x = -Picture3.Width
  1283. y = y + Picture3.Height
  1284. End If
  1285. Loop Until y > Picture2.ScaleHeight
  1286. End Sub
  1287. Private Sub Picture4_Resize()
  1288. On Error Resume Next
  1289. Command1.Left = Picture4.ScaleWidth - Command1.Width
  1290. Command2.Left = Picture4.ScaleWidth - Command1.Width * 2
  1291. End Sub
  1292. Private Sub Picture5_Click()
  1293. On Error Resume Next
  1294. wb.Navigate homepage
  1295. End Sub
  1296. Private Sub Picture6_Resize()
  1297. On Error Resume Next
  1298. Line5.X1 = Picture6.Width - 40
  1299. Line5.X2 = Picture6.Width - 40
  1300. Line4.X1 = Picture6.Width - 25
  1301. Line4.X2 = Picture6.Width - 25
  1302. Line1(0).X2 = Picture6.Width - 25
  1303. Line2(0).X2 = Picture6.Width - 25
  1304. Line1(1).X2 = Picture6.Width - 25
  1305. Line2(1).X2 = Picture6.Width - 25
  1306. End Sub
  1307. Private Sub Picture7_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  1308. MouseStartx = x
  1309. End Sub
  1310. Private Sub Picture7_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1311.     On Error Resume Next
  1312.   If Button = vbLeftButton Then
  1313.      
  1314.          Picture7.Left = Picture7.Left - (MouseStartx - x)
  1315.     End If
  1316. End Sub
  1317. Private Sub Picture7_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  1318.   On Error Resume Next
  1319.   If Button = vbLeftButton Then
  1320.      
  1321. ListView1.Width = Picture7.Left + ListView1.Left - 250
  1322. wb.Left = Picture7.Left + Picture7.Width
  1323. Picture6.Width = Picture7.Left
  1324. Form_Resize
  1325.     End If
  1326. End Sub
  1327. Private Sub refreshbtn_Click()
  1328. wb.Refresh
  1329. End Sub
  1330. Private Sub refreshbtn_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  1331. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & ".bmp")
  1332. End Sub
  1333. Private Sub refreshbtn_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1334. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & ".bmp")
  1335. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & ".bmp")
  1336. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & ".bmp")
  1337. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & ".bmp")
  1338. If Button = False Then
  1339. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & "2.bmp")
  1340. End If
  1341. End Sub
  1342. Private Sub refreshbtn_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  1343. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & ".bmp")
  1344. End Sub
  1345. Private Sub stopbtn_Click()
  1346. wb.Stop
  1347. End Sub
  1348. Private Sub stopbtn_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  1349. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & ".bmp")
  1350. End Sub
  1351. Private Sub stopbtn_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1352. homebtn.Picture = LoadPicture(App.Path & "\" & homebtn.Tag & ".bmp")
  1353. refreshbtn.Picture = LoadPicture(App.Path & "\" & refreshbtn.Tag & ".bmp")
  1354. backbtn.Picture = LoadPicture(App.Path & "\" & backbtn.Tag & ".bmp")
  1355. forbtn.Picture = LoadPicture(App.Path & "\" & forbtn.Tag & ".bmp")
  1356. If Button = False Then
  1357. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & "2.bmp")
  1358. End If
  1359. End Sub
  1360. Private Sub stopbtn_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  1361. stopbtn.Picture = LoadPicture(App.Path & "\" & stopbtn.Tag & ".bmp")
  1362. End Sub
  1363. Private Sub Timer1_Timer()
  1364. On Error Resume Next
  1365. curg = curg + 1
  1366. If curg = Clip1.Cols Then curg = 1
  1367. Clip1.ClipHeight = Clip1.Picture.Height
  1368. Picture5.Picture = Clip1.GraphicCell(curg)
  1369. End Sub
  1370. Private Sub titlebar_DblClick()
  1371. If Me.WindowState = 0 Then
  1372. Me.WindowState = 2
  1373. Exit Sub
  1374. Me.WindowState = 0
  1375. Exit Sub
  1376. End If
  1377. End Sub
  1378. Private Sub titlebar_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  1379. mx = x
  1380. my = y
  1381. End Sub
  1382. Private Sub titlebar_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  1383. On Error Resume Next
  1384. If Button = vbLeftButton Then
  1385. Me.Top = Me.Top - (my - y)
  1386. Me.Left = Me.Left - (mx - x)
  1387. End If
  1388. For i = 0 To 3
  1389. If mnu(i).BackStyle = 1 Then
  1390. mnu(i).BackStyle = 0
  1391. End If
  1392. Next i
  1393. End Sub
  1394. Private Sub titlebar_Paint()
  1395. On Error Resume Next
  1396. titlebar.Cls
  1397. Dim x As Single
  1398. Dim y As Single
  1399. y = 0
  1400. x = 0
  1401. titlebar.PaintPicture Picture11.Picture, 0, 0, Picture11.Width, Picture11.Height, 0, 0, Picture11.Width, Picture11.Height
  1402. x = x + Picture11.Width
  1403. titlebar.PaintPicture Picture11.Picture, x, y, Picture11.Width, Picture11.Height, 0, 0, Picture11.Width, Picture11.Height
  1404. If x > titlebar.Width Then
  1405. x = -Picture11.Width
  1406. y = y + Picture11.Height
  1407. End If
  1408. Loop Until y > titlebar.ScaleHeight
  1409. titlebar.CurrentX = 0
  1410. titlebar.CurrentY = 30
  1411. titlebar.Print "    " & titlebar.Tag
  1412. End Sub
  1413. Private Sub Timer2_Timer()
  1414. On Error Resume Next
  1415. Dim splited As Integer
  1416. Dim f As Integer
  1417. f = FreeFile
  1418. Open App.Path & "\items.txt" For Input As #f
  1419. Input #f, a
  1420. x = Combo1.Text
  1421. splited = InStr(1, a, Combo1.Text)
  1422. 'Combo1.SelStart = splited + Len(X) - 1
  1423. 'Combo1.SelLength = Len(a) - splited + Len(X) - 1
  1424. If splited <> 0 Then
  1425. Combo1.Text = a
  1426. Combo1.SelStart = splited + Len(x) - 1
  1427. Combo1.SelLength = Len(a) - splited + Len(x) - 1
  1428. GoTo endd
  1429. End If
  1430. Loop Until EOF(f)
  1431. endd:
  1432. Close #f
  1433. Timer2.Enabled = False
  1434. End Sub
  1435. Private Sub VScroll1_Scroll()
  1436. pge.Top = -VScroll1.Value
  1437. End Sub
  1438. Private Sub wb_DocumentComplete(ByVal pDisp As Object, URL As Variant)
  1439. On Error Resume Next
  1440. Combo1.Text = URL
  1441. End Sub
  1442. Private Sub wb_DownloadBegin()
  1443. Timer1.Enabled = True
  1444. End Sub
  1445. Private Sub wb_DownloadComplete()
  1446. On Error Resume Next
  1447. Timer1.Enabled = False
  1448. curg = 1
  1449. Picture5.Picture = Clip1.GraphicCell(curg)
  1450. End Sub
  1451. Private Sub wb_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
  1452. On Error Resume Next
  1453. l = Picture4.ScaleWidth / ProgressMax
  1454. Picture4.Cls
  1455. Rectangle Picture4.hDC, 0, 0, Progress * l, Picture4.ScaleHeight + 2
  1456. Picture4.Print " " & stext
  1457. End Sub
  1458. Private Sub wb_StatusTextChange(ByVal Text As String)
  1459. stext = Text
  1460. End Sub
  1461. Private Sub wb_TitleChange(ByVal Text As String)
  1462. On Error Resume Next
  1463. Me.Caption = Text & " - VB Net Browser"
  1464. title = Text
  1465. End Sub
  1466.